#include <stdlib.h>

#include "SDL/SDL.h"

#include "chronometre.h"

#include "constantes_et_macros.h"



unsigned int obtenir_temps(void)
{
    return SDL_GetTicks();
}



void attendre(const unsigned int temps)
{
    int delai;

    delai = temps - obtenir_temps() + INTERVALE;
    if(delai > 0)
        SDL_Delay(delai);
}
